/**
 * class dome
 * @author hxy
 * @date 2020/10/29
 */
package Charpter01;

public class Charpter_exception {
    public static void main(String[] args)
    {
        int y=2,z=0;
        //寻找一个错误
        try{
            int x =y/z;
            System.out.println("程序正常");
        }catch(ArithmeticException e){
            System.out.println("捕捉一个异常!");
        }
    }
}
